package com.py.credit.dao;

import com.py.credit.entity.LhjcZooControl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LhjcDataInsertDao {

    void addBatchData(@Param(value = "sql") String sql);

    String selectCsByBm(@Param(value = "bm") String bm);

    String selectCsByRemark(@Param(value = "remark") String remark);

    String selectGzByBm(@Param(value = "bm") String bm);

    String selectLyByBm(@Param(value = "bm") String bm);

    void addBatchControlData(@Param(value = "controlData") List<LhjcZooControl> controlData,
                             @Param(value = "batchId") String batchId,
                             @Param(value = "cubeId") int cubeId);

    int selectGzCsExist(@Param(value = "gzId") String gzId,
                        @Param(value = "csId") String csId,
                        @Param(value = "deptId") String deptId);

    int selectLyCsExist(@Param(value = "csId") String csId,
                        @Param(value = "deptId") String lyId);

    int selectDeptCsExist(@Param(value = "csId") String csId,
                        @Param(value = "deptId") String deptId);
}
